package mysql

import "gorm.io/gorm"

type Product struct {
	gorm.Model
	Name       string  `gorm:"type:varchar(100)" json:"name"`
	Price      float64 `gorm:"type:decimal(10,2)" json:"price"`
	Stock      int64   `gorm:"type:int(10)" json:"stock"`
	Ingredient string  `gorm:"type:varchar(50)" json:"ingredient"`
	Taste      string  `gorm:"type:varchar(30)" json:"taste"`
	Status     int64   `gorm:"type:int(10)" json:"status"` //1上架 2下架
	ImageUrl   string  `gorm:"type:varchar(255)" json:"imageUrl"`
	CategoryId int64   `gorm:"type:int(10)" json:"categoryId"`
}
